﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Common.Exceptions
{
    public class DataNotFoundException : BusinessException
    {
        public DataNotFoundException(string message = "请求的数据不存在")
            : base(message, 404, HttpStatusCode.NotFound)
        {
        }

        public DataNotFoundException(string resourceType, string resourceId)
            : base($"{resourceType} [ID: {resourceId}] 不存在", 404, HttpStatusCode.NotFound)
        {
        }

        public DataNotFoundException(string resourceType, string resourceId, string additionalInfo)
            : base($"{resourceType} [ID: {resourceId}] 不存在 - {additionalInfo}", 404, HttpStatusCode.NotFound)
        {
        }
    }
}
